package ks.client.controllers;


import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import ks.client.gui.GMTOPT;
import ks.client.lobby.Lobby;

/**
 *  This controller is a GUI based controller that gets access
 * to the Table Manager and retrieves stored table's ID.
 * Following which, constructs a command to be sent to the server.
 * 
 * @author szutshi
 */
public class TableOptionsClick implements ActionListener{
	
	Lobby lobby;
	int num;
	
	/**
	 * @param lobby 
	 */
	public TableOptionsClick(Lobby lobby, int num) {
		this.lobby = lobby;
		this.num = num;
		
	}
	
	public void actionPerformed(ActionEvent e){
		
		JFrame topt = new GMTOPT(lobby, num);
		topt.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		topt.setTitle("Table Options");
		topt.setVisible(true);
}
}
